package com.sos.widget.log;

import android.graphics.Color;

/**
 * @Description
 * @Author 梁浩文
 * @Date 2021/7/13 10:58
 */
public class LogBean {
    //0-全部 1-v 2-d 3-i 4-w 5-e
    public int type;
    public String log;

    public LogBean(int type, String log) {
        this.type = type;
        this.log = log;
    }

    public int getColor() {
        switch (type) {
            case 0:
                return Color.parseColor("#333333");
            case 1:
                return Color.parseColor("#FFFA00");
            case 2:
                return Color.parseColor("#FFFA00");
            case 3:
                return Color.parseColor("#333333");
            case 4:
                return Color.parseColor("#FFCF00");
            case 5:
                return Color.RED;
        }
        return Color.parseColor("#333333");
    }
}
